@font-face {
  font-family: "CustomFont";
  src: url("./dingliebabyfont.ttf");
}
body {
  text-align: center;
  background-attachment: fixed;
  background-image: url("./bg.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}
.box {
  width: 500px;
  height: 500px;
  margin: 10px auto;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}
.main {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  border: 5px solid black;
  border-radius: 50%;
  background: rgba(128, 128, 128, 0.49);
  overflow: hidden;
  position: relative;
  transition: transform 4s cubic-bezier(0.25, 0.1, 0.05, 0.95);
}
.pointer {
  width: 50px;
  height: 50px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9;
}
.pointer-bar {
  width: 60px;
  height: 25px;
  background: white;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(0, -50%);
}
.pointer-cursor {
  width: 25px;
  height: 25px;
  position: absolute;
  left: 85px;
  top: 50%;
  transform: translate(-50%, -50%) rotateZ(45deg);
  background: white;
}
.part {
  height: 100%;
  width: 50%;
  position: absolute;
  top: 0;
  left: 50%;
  transform-origin: left center;
  z-index: 1;
}
.bg {
  width: 100%;
  height: 100%;
}
.title {
  font-family: "CustomFont", "Comic Sans MS", cursive;
  transform: translate(0, -50%);
  transform-origin: left top;
  width: 100%;
  height: auto;
  text-align: center;
  font-size: 30px;
  color: white;
  position: absolute;
  top: 50%;
  left: 0;
  padding-left: 85px;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@keyframes jump {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
  100% {
    transform: translateY(0);
  }
}
.winner {
  font-family: "CustomFont", "Comic Sans MS", cursive;
  pointer-events: none;
  margin-top: 20px;
  font-size: 60px;
  background: linear-gradient(
    45deg,
    #1818a7,
    #483d8b,
    #6a5acd,
    #8a2be2,
    #d30094
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
  animation: jump 1s ease infinite;
}
button {
  padding: 15px 30px;
  font-size: 24px;
  font-family: "Comic Sans MS", cursive;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  background: linear-gradient(to bottom, #ffd700, #ffa500);
  color: white;
  box-shadow: 0 8px 0 #ff8c00;
  transition: all 0.1s ease;
  user-select: none;
}
button:hover {
  transform: translateY(-3px);
  box-shadow: 0 11px 0 #ff8c00;
}
button:active {
  transform: translateY(3px);
  box-shadow: 0 5px 0 #ff8c00;
}
.curd-buttons {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 10px;
}
.export-button {
  position: absolute;
  top: 10px;
  right: 10px;
}

.export-button button {
  background: linear-gradient(to bottom, #87cefa, #4682b4);
  color: white;
  border: none;
  padding: 8px 16px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 6px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.export-button button:hover {
  background: linear-gradient(to bottom, #4682b4, #1e90ff);
}
input {
  padding: 10px;
  font-size: 18px;
  margin: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
}
.modal {
  display: none;
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}
.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 10px solid #ffd700;
  border-radius: 30px;
  width: 300px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  animation-name: animatetop;
  animation-duration: 0.4s;
}

.result-box {
  width: 280px;
  min-height: 120px;
  max-height: 300px;
  background: rgba(255, 248, 220, 0.9);
  border: 4px solid #ffcc00;
  border-radius: 10px;
  text-align: center;
  font-size: 18px;
  font-family: "Comic Sans MS", cursive;
  color: #ff4500;
  font-weight: bold;
  box-shadow: 4px 4px 0px #ff9900, 8px 8px 0px #ff6600;
  position: absolute;
  bottom: 10px;
  left: 10px;
  padding: 10px;
  overflow-y: auto;
}

.result-box h3 {
  margin: 5px 0;
}

.result-list {
  text-align: left;
  font-size: 16px;
  color: #333;
  max-height: 200px;
  overflow-y: auto;
}

.result-item {
  background: #ffeb99;
  border-radius: 5px;
  padding: 5px;
  margin: 3px 0;
  box-shadow: 2px 2px 0px #ffcc00;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.result-item .name {
  color: #d2691e;
  font-weight: bold;
  cursor: pointer;
  min-width: 60px;
  border-bottom: 1px dashed #d2691e;
}

.result-item .prize {
  flex: 1;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}
.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}
@keyframes animatetop {
  from {
    top: -300px;
    opacity: 0;
  }
  to {
    top: 0;
    opacity: 1;
  }
}
